package my.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 测试 pojo
 *
 * @author AJun
 * @date 2020/9/15
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class Student implements Comparable<Student> {

    private int score;
    private int age;

    @Override
    public int compareTo(Student o) {
        return age - o.age;
    }

}
